<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateEnterpriseSystemSetupTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('enterprise_system_setup', function (Blueprint $table) {
            $table->engine = 'InnoDB';
            $table->increments('id');
            // 系统设置中的键
            $table->string('key',255)->unique();
            // 系统设置中的制
            $table->string('value',255);
            // 对本设置进行说明
            $table->string('explain',255);
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('enterprise_system_setup');
    }
}
